#!/usr/bin/env python3
# coding: utf-8

"""
加载系统配置
"""

__author__ = 'MC'


from os import path
import xml.etree.ElementTree as Etree

__ConfigFile = path.split(path.realpath(__file__))[0] + "/Config/Config.xml"

__Tree = Etree.parse(__ConfigFile)
__Root = __Tree.getroot()

# 系统配置项
# 默认备份目录地址
BackupFilePath = __Root.find('backuppath').text

# 系统环境
System = __Root.find('system').text

# 配置文件存放目录
ConfigPath = path.split(path.realpath(__file__))[0] + "/Config"

# 日志文件存放目录
LogPath = path.split(path.realpath(__file__))[0] + "/Log"